package com.svo.weitu.model.entity;

import java.io.Serializable;

import android.content.Context;
import android.text.TextUtils;

import com.svo.weitu.util.MyUtil;


public class ListEntity implements Serializable{
	
	private static final long serialVersionUID = -3944417736688907797L;
	private int id;
	private String thumbnail;
	private String urls;
	private String title;
	private String desc;
	private String srcUrl;
	private int parId;//所属的分类
	private long time;
	private int loves;//赞的次数
	public ListEntity(Context context) {
	}
	public ListEntity() {
	}
	public int getLoves() {
		return loves;
	}
	public void setLoves(int loves) {
		this.loves = loves;
	}
	public long getTime() {
		return time;
	}
	public void setTime(long time) {
		this.time = time;
	}
	public int getParId() {
		return parId;
	}
	public void setParId(int parId) {
		this.parId = parId;
	}
	public String getSrcUrl() {
		return srcUrl;
	}
	public void setSrcUrl(String srcUrl) {
		this.srcUrl = srcUrl;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getThumbnail() {
		return thumbnail;
	}
	
	public void setThumbnail(String thumbnail) {
		this.thumbnail = thumbnail;
	}
	public String getUrls() {
		return urls;
	}
	public void setUrls(String urls) {
		this.urls = urls;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getDesc() {
		if (desc != null) {
			return desc.replace("&nbsp;", "").replace("&hellip;", "...").trim();
		}
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	
}
